/*******************************************************************************
 * Size: 36 px
 * Bpp: 4
 * Opts: 
 ******************************************************************************/

#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl.h"
#endif

#ifndef DIGIFAW_36
#define DIGIFAW_36 1
#endif

#if DIGIFAW_36

/*-----------------
 *    BITMAPS
 *----------------*/

/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
    /* U+002D "-" */
    0x0, 0x84, 0x7f, 0xf8, 0x20, 0x12, 0xf7, 0x7f,
    0xf0, 0x28, 0x0, 0xb4, 0x1, 0xff, 0x25, 0x82,
    0xd0, 0x7, 0xfc, 0x96, 0x0,

    /* U+0030 "0" */
    0x0, 0xc5, 0x9f, 0xff, 0xf5, 0x88, 0x7, 0xc7,
    0xa6, 0x1, 0xff, 0x27, 0x90, 0x6, 0x2b, 0x6b,
    0x10, 0xf, 0xf8, 0xb5, 0x68, 0x41, 0x75, 0x2b,
    0xbb, 0xff, 0x83, 0x9f, 0xb, 0xe7, 0xe0, 0x12,
    0x80, 0x8f, 0xfc, 0x66, 0x0, 0xa, 0x0, 0x7f,
    0xff, 0xc0, 0x3f, 0xfc, 0x2, 0x1, 0xff, 0xc8,
    0x39, 0xe0, 0xf, 0xfe, 0x1, 0x74, 0x10, 0x3,
    0xf7, 0x18, 0x3, 0xff, 0x84, 0x2f, 0xb8, 0x80,
    0x20, 0x1f, 0xfc, 0x77, 0x77, 0xe7, 0x41, 0x80,
    0x7f, 0xf0, 0x52, 0x7a, 0xcc, 0x0, 0x2f, 0x80,
    0x1f, 0xfc, 0x2, 0xb6, 0x10, 0xf, 0xff, 0xf8,
    0x7, 0xff, 0xd7, 0xc0, 0x25, 0x1, 0x1f, 0xf8,
    0xcc, 0x0, 0x14, 0x5d, 0x4a, 0xee, 0xff, 0xe0,
    0xe7, 0xc2, 0xf9, 0x81, 0x5b, 0x58, 0x80, 0x7f,
    0xc5, 0xab, 0x42, 0x1, 0x8f, 0x4c, 0x3, 0xfe,
    0x4f, 0x20, 0x8,

    /* U+0031 "1" */
    0x0, 0x8e, 0x0, 0x11, 0x86, 0x5a, 0xe0, 0xc,
    0x20, 0xf, 0xfe, 0xa9, 0x80, 0x6d, 0xa4, 0x0,
    0x96, 0xf7, 0x80, 0x21, 0x2, 0x8d, 0xce, 0xc7,
    0x20, 0xf, 0xfe, 0xce, 0x10, 0x4, 0x5a, 0xe0,
    0x1a, 0x30, 0xc0,

    /* U+0032 "2" */
    0x0, 0xc9, 0xbf, 0xff, 0xf5, 0x88, 0x7, 0x8a,
    0xec, 0x40, 0x1f, 0xf2, 0x79, 0x0, 0x68, 0xd4,
    0x0, 0xff, 0xe0, 0x96, 0xad, 0x8, 0x2, 0x7b,
    0xbf, 0xf8, 0x79, 0xf0, 0xbe, 0x80, 0x23, 0xff,
    0xc4, 0x33, 0x0, 0x4, 0xc0, 0x3f, 0xff, 0xe0,
    0x1f, 0xfe, 0xd3, 0x30, 0x7, 0xc2, 0xfd, 0xff,
    0xff, 0x65, 0xe3, 0x88, 0x0, 0x6f, 0xa0, 0x40,
    0x3f, 0xe2, 0x8c, 0x1f, 0x68, 0x98, 0x94, 0x0,
    0xff, 0xe0, 0xad, 0x48, 0x88, 0x9f, 0x2f, 0x3f,
    0x77, 0xfe, 0xfa, 0x50, 0xf, 0x14, 0x1, 0x17,
    0xfc, 0x1, 0xff, 0xff, 0x0, 0xff, 0xfc, 0xf8,
    0x4, 0xa0, 0x23, 0xff, 0xc0, 0x0, 0xe5, 0xd4,
    0xae, 0xef, 0xfe, 0x16, 0x10, 0x6, 0x2b, 0x6b,
    0x10, 0xf, 0xfe, 0x1, 0xeb, 0x0, 0x71, 0xe9,
    0x80, 0x7f, 0xf0, 0xa6, 0x84,

    /* U+0033 "3" */
    0x2c, 0xff, 0xff, 0xe1, 0x61, 0x0, 0x62, 0xc8,
    0x0, 0xff, 0xe0, 0x9e, 0x90, 0x7, 0x3e, 0x10,
    0x7, 0xfc, 0x56, 0xb4, 0x20, 0x18, 0xf7, 0xbb,
    0xfe, 0xc8, 0x82, 0xf2, 0x0, 0x70, 0x8f, 0xfc,
    0x6, 0x1, 0x60, 0x7, 0xff, 0xfc, 0x3, 0xff,
    0xce, 0x26, 0x1, 0xe1, 0x7d, 0xff, 0xff, 0xb6,
    0xf1, 0xc4, 0x6, 0xba, 0x8, 0x3, 0xfe, 0x28,
    0xc2, 0xf9, 0x1b, 0x94, 0x0, 0xff, 0xe0, 0xa5,
    0x74, 0xb8, 0xb, 0x5f, 0xee, 0xff, 0xdc, 0x71,
    0x6f, 0xc0, 0x1c, 0x45, 0xff, 0x3, 0x90, 0x7,
    0xff, 0xfc, 0x3, 0xff, 0xea, 0x23, 0xff, 0x2,
    0x0, 0x7, 0x0, 0x23, 0xde, 0xef, 0xfb, 0x3e,
    0x57, 0xd0, 0x0, 0xf8, 0x40, 0x1f, 0xf1, 0x5a,
    0x50, 0x81, 0x64, 0x0, 0x7f, 0xf0, 0x4f, 0x48,
    0x2,

    /* U+0034 "4" */
    0x20, 0xf, 0xfe, 0x49, 0x45, 0x8, 0x7, 0xff,
    0x14, 0xb1, 0x41, 0x7d, 0x40, 0x3f, 0xf8, 0x6f,
    0xa6, 0x1, 0xd, 0x50, 0x3, 0xff, 0x83, 0x90,
    0x1, 0xf2, 0x80, 0x7f, 0xf0, 0x8, 0xc0, 0x3f,
    0xff, 0xe0, 0x1f, 0xff, 0xa1, 0x70, 0x22, 0xff,
    0x8d, 0x80, 0x39, 0x2a, 0x85, 0xfb, 0xbf, 0xf7,
    0x86, 0x49, 0x85, 0x52, 0x6d, 0x40, 0x3f, 0xf8,
    0x2, 0xd9, 0x8d, 0x70, 0x1c, 0xb6, 0x10, 0xf,
    0xf8, 0x9e, 0xf2, 0x9c, 0x2, 0x49, 0xef, 0xff,
    0xfb, 0xe, 0xe5, 0x0, 0x3f, 0xf8, 0xc6, 0x80,
    0x1f, 0xff, 0xf0, 0xf, 0xff, 0xf8, 0x7, 0xf1,
    0x90, 0x7, 0xff, 0x24, 0x75, 0x80, 0x3f, 0xf9,
    0x53, 0x84, 0x1, 0xff, 0xc9, 0x3d, 0x40,

    /* U+0035 "5" */
    0x0, 0xc5, 0x9f, 0xff, 0xfc, 0x2b, 0x10, 0xc,
    0x7a, 0x60, 0x1f, 0xfc, 0x19, 0xb1, 0x0, 0x15,
    0xb5, 0x88, 0x7, 0xfc, 0x7a, 0xc0, 0x13, 0x6a,
    0x57, 0x77, 0xff, 0x7, 0x8, 0x3, 0x60, 0x4,
    0xa0, 0x23, 0xff, 0x0, 0x7f, 0xff, 0xc0, 0x3f,
    0xfc, 0xc8, 0x1, 0xff, 0xc7, 0x28, 0xcc, 0x77,
    0xff, 0xfd, 0xae, 0x20, 0x15, 0xe6, 0x50, 0x20,
    0x1f, 0xf1, 0x47, 0x48, 0x80, 0x8a, 0xa5, 0x0,
    0x3f, 0xf8, 0x2b, 0x5b, 0xc, 0x0, 0x16, 0xbf,
    0xdd, 0xff, 0xb8, 0xae, 0xcc, 0x20, 0x1e, 0x22,
    0xff, 0x8d, 0xc4, 0x3, 0xff, 0xfe, 0x1, 0xff,
    0xfb, 0x11, 0xff, 0xe0, 0x19, 0x80, 0x2, 0x80,
    0x11, 0xef, 0x77, 0xff, 0x3, 0x3e, 0x17, 0xcc,
    0x1, 0x18, 0x40, 0x1f, 0xfc, 0x2, 0xd5, 0xa1,
    0x2, 0xc7, 0x0, 0xff, 0xe1, 0x27, 0x90, 0x4,

    /* U+0036 "6" */
    0x0, 0xc5, 0x9f, 0xff, 0xfc, 0x2b, 0x10, 0xc,
    0x7a, 0x60, 0x1f, 0xfc, 0x19, 0xb1, 0x0, 0x15,
    0xb5, 0x88, 0x7, 0xfc, 0x7a, 0xc0, 0x13, 0x6a,
    0x57, 0x77, 0xff, 0x7, 0x8, 0x3, 0x60, 0x4,
    0xa0, 0x23, 0xff, 0x0, 0x7f, 0xff, 0xc0, 0x3f,
    0xfc, 0xc8, 0x1, 0xff, 0xc7, 0x28, 0xcc, 0x77,
    0xff, 0xfd, 0xae, 0x20, 0x15, 0xe6, 0x50, 0x20,
    0x1f, 0xf1, 0x47, 0x48, 0x84, 0xca, 0x25, 0x0,
    0x3f, 0xf8, 0x2b, 0x5b, 0xc, 0x4f, 0x97, 0x9f,
    0xbb, 0xff, 0x71, 0x5d, 0x98, 0x40, 0x22, 0x80,
    0x22, 0xff, 0x8d, 0xc4, 0x3, 0xff, 0xfe, 0x1,
    0xff, 0xf6, 0xf0, 0x9, 0x40, 0x47, 0xfe, 0x33,
    0x0, 0x5, 0x17, 0x52, 0xbb, 0xbf, 0xf8, 0x39,
    0xf0, 0xbe, 0x60, 0x56, 0xd6, 0x20, 0x1f, 0xf1,
    0x6a, 0xd0, 0x80, 0x63, 0xd3, 0x0, 0xff, 0x93,
    0xc8, 0x2,

    /* U+0037 "7" */
    0x5e, 0xff, 0xff, 0xe2, 0xd9, 0x11, 0x7d, 0x40,
    0x3f, 0xf8, 0x73, 0x1e, 0x80, 0x35, 0x41, 0x0,
    0xff, 0x93, 0x7b, 0x8, 0x3, 0x2f, 0x77, 0xff,
    0x2, 0xbd, 0xc0, 0x3f, 0x8, 0xff, 0xca, 0x40,
    0x1f, 0xff, 0xf0, 0xf, 0xff, 0x5b, 0x80, 0x7f,
    0xf2, 0x4f, 0xa0, 0x80, 0x3f, 0xf8, 0xe2, 0xfb,
    0x6a, 0x1, 0xff, 0xdb, 0x4a, 0xfb, 0x50, 0xf,
    0xfe, 0x22, 0x5a, 0x80, 0x7f, 0xff, 0xc0, 0x3f,
    0xff, 0xe0, 0x1f, 0xfc, 0xb4, 0x90, 0xf, 0xfe,
    0x4b, 0x72, 0x0, 0x7f, 0xf2, 0x6, 0xe4, 0xc0,

    /* U+0038 "8" */
    0x0, 0xc5, 0x9f, 0xff, 0xf5, 0x88, 0x7, 0xc7,
    0xa6, 0x1, 0xff, 0x27, 0x90, 0x6, 0x2b, 0x6b,
    0x10, 0xf, 0xf8, 0xb5, 0x68, 0x41, 0xb5, 0x2b,
    0xbb, 0xff, 0x83, 0x9f, 0xb, 0xe9, 0x80, 0x12,
    0x80, 0x8f, 0xfc, 0x66, 0x0, 0x9, 0x80, 0x7f,
    0xff, 0xc0, 0x3f, 0xfc, 0x8, 0x1, 0xff, 0xc0,
    0x33, 0x0, 0x71, 0x46, 0x63, 0xbf, 0xff, 0xec,
    0xbc, 0x71, 0xb, 0xcc, 0xa0, 0x40, 0x3f, 0xe2,
    0x8c, 0x1f, 0x69, 0x94, 0x4a, 0x0, 0x7f, 0xf0,
    0x56, 0xb6, 0x1c, 0x9f, 0x2f, 0x3f, 0x77, 0xfe,
    0xe2, 0xbb, 0x30, 0x80, 0x45, 0x0, 0x45, 0xff,
    0x1b, 0x88, 0x7, 0xff, 0xfc, 0x3, 0xff, 0xed,
    0xe0, 0x12, 0x80, 0x8f, 0xfc, 0x66, 0x0, 0xa,
    0x2e, 0xa5, 0x77, 0x7f, 0xf0, 0x73, 0xe1, 0x7c,
    0xc0, 0xad, 0xac, 0x40, 0x3f, 0xe2, 0xd5, 0xa1,
    0x0, 0xc7, 0xa6, 0x1, 0xff, 0x27, 0x90, 0x4,

    /* U+0039 "9" */
    0x0, 0xc5, 0x9f, 0xff, 0xf5, 0x88, 0x7, 0xc7,
    0xa6, 0x1, 0xff, 0x27, 0x90, 0x6, 0x2b, 0x6b,
    0x10, 0xf, 0xf8, 0xb5, 0x68, 0x41, 0xb5, 0x2b,
    0xbb, 0xff, 0x83, 0x9f, 0xb, 0xe9, 0x80, 0x12,
    0x80, 0x8f, 0xfc, 0x66, 0x0, 0x9, 0x80, 0x7f,
    0xff, 0xc0, 0x3f, 0xfc, 0x2, 0x1, 0xff, 0xc0,
    0x30, 0xf, 0xb, 0x53, 0x77, 0xff, 0xfd, 0x91,
    0x2a, 0x0, 0xbc, 0x2a, 0x71, 0x0, 0xff, 0x8a,
    0x24, 0xf9, 0x84, 0xaa, 0x50, 0x3, 0xff, 0x82,
    0xb5, 0x72, 0xe0, 0x1, 0x6b, 0xfd, 0xdf, 0xfb,
    0xfd, 0xda, 0xe2, 0x1, 0xe2, 0x2f, 0xfe, 0x5,
    0x20, 0x7, 0xff, 0xfc, 0x3, 0xff, 0xf8, 0x23,
    0xff, 0x19, 0x80, 0x2, 0x80, 0x18, 0xf7, 0xbb,
    0xfe, 0xcf, 0x85, 0xf3, 0x0, 0xa3, 0x8, 0x3,
    0xfe, 0x2d, 0x5a, 0x10, 0x1, 0x63, 0x80, 0x7f,
    0xf0, 0x53, 0xc8, 0x2,

    /* U+003A ":" */
    0x6f, 0xfc, 0x60, 0x1f, 0xfc, 0xc4, 0xaa, 0xc4,
    0x45, 0x5c, 0x20, 0x1f, 0xfc, 0xc4, 0x99, 0xc4,
    0x46, 0x6c, 0x20, 0x1f, 0xfc, 0xc0
};


/*---------------------
 *  GLYPH DESCRIPTION
 *--------------------*/

static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
    {.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
    {.bitmap_index = 0, .adv_w = 295, .box_w = 17, .box_h = 4, .ofs_x = 1, .ofs_y = 8},
    {.bitmap_index = 21, .adv_w = 428, .box_w = 23, .box_h = 26, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 144, .adv_w = 428, .box_w = 5, .box_h = 26, .ofs_x = 11, .ofs_y = 0},
    {.bitmap_index = 179, .adv_w = 428, .box_w = 23, .box_h = 26, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 296, .adv_w = 428, .box_w = 22, .box_h = 26, .ofs_x = 1, .ofs_y = 0},
    {.bitmap_index = 409, .adv_w = 428, .box_w = 23, .box_h = 27, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 512, .adv_w = 428, .box_w = 23, .box_h = 26, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 632, .adv_w = 428, .box_w = 23, .box_h = 26, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 754, .adv_w = 428, .box_w = 22, .box_h = 26, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 834, .adv_w = 428, .box_w = 23, .box_h = 26, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 962, .adv_w = 428, .box_w = 23, .box_h = 26, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 1086, .adv_w = 118, .box_w = 6, .box_h = 17, .ofs_x = 1, .ofs_y = 0}
};

/*---------------------
 *  CHARACTER MAPPING
 *--------------------*/

static const uint8_t glyph_id_ofs_list_0[] = {
    0, 0, 0, 1, 2, 3, 4, 5,
    6, 7, 8, 9, 10, 11
};

/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
    {
        .range_start = 45, .range_length = 14, .glyph_id_start = 1,
        .unicode_list = NULL, .glyph_id_ofs_list = glyph_id_ofs_list_0, .list_length = 14, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_FULL
    }
};



/*--------------------
 *  ALL CUSTOM DATA
 *--------------------*/

#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static  lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
    .glyph_bitmap = glyph_bitmap,
    .glyph_dsc = glyph_dsc,
    .cmaps = cmaps,
    .kern_dsc = NULL,
    .kern_scale = 0,
    .cmap_num = 1,
    .bpp = 4,
    .kern_classes = 0,
    .bitmap_format = 1,
#if LV_VERSION_CHECK(8, 0, 0)
    .cache = &cache
#endif
};


/*-----------------
 *  PUBLIC FONT
 *----------------*/

/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t digifaw_36 = {
#else
lv_font_t digifaw_36 = {
#endif
    .get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt,    /*Function pointer to get glyph's data*/
    .get_glyph_bitmap = lv_font_get_bitmap_fmt_txt,    /*Function pointer to get glyph's bitmap*/
    .line_height = 27,          /*The maximum line height required by the font*/
    .base_line = 0,             /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
    .subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
    .underline_position = 0,
    .underline_thickness = 0,
#endif
    .dsc = &font_dsc           /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};



#endif /*#if DIGIFAW_36*/

